package api

import (
	"github.com/gin-gonic/gin"
	"zhihu/api/handler"
)

func LoadRouter(r *gin.Engine) {
	api := r.Group("/api")
	{
		api.POST("/add", handler.AddText)
		api.POST("/list", handler.ListText)
		api.POST("/addReview", handler.AddReview)
		api.POST("/listReview", handler.ListReview)
		api.POST("/review/addReview", handler.AddReviewByReview)
	}
}
